#include "servertest.hpp"

// ./servertest ip port
void Usage(std::string  proc)
{
    std::cout << "Usage: " << proc << "local_port " << std::endl;
}

int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }
    servertest *up = new servertest(atoi(argv[1]));
    up->initServer();
    up->start();
    delete up;

    return 0;
}
